package com.lwj.designpattern.strategy;

/**
 * @author wujilee
 * @date 2023/2/13
 */
public class Main {
    public static void main(String[] args) {
        Sorter sorter = new Sorter();
        Dog[] a = {new Dog(1),new Dog(2),new Dog(3)};
        sorter.sort(a,new DogCompartor());
        System.out.println(a);
       ;
    }
}
